package org.domon.manager.model;

import java.io.Serializable;
import java.util.List;

public class PageObject<T> implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -427218716773070247L;

	/**
	 * 响应状态（返回异步请求结果时使用）
	 */
	private boolean success;

	/**
	 * 响应信息（返回异步请求结果时使用）
	 */
	private String msg;

	/**
	 * 当前页
	 */
	private int page;

	/**
	 * 总页数
	 */
	private int totalPage;
	
	/**
	 * 每页行数
	 */
	private int rows;

	/**
	 * 总行数
	 */
	private int totalRow;

	/**
	 * 响应结果集
	 */
	private List<T> resultList;

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public int getTotalRow() {
		return totalRow;
	}

	public void setTotalRow(int totalRow) {
		this.totalRow = totalRow;
	}

	public List<T> getResultList() {
		return resultList;
	}

	public void setResultList(List<T> resultList) {
		this.resultList = resultList;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}
}
